﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F5F RID: 3935
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicScepterDressInfo : IMessage<RogueMagicScepterDressInfo>, IMessage, IEquatable<RogueMagicScepterDressInfo>, IDeepCloneable<RogueMagicScepterDressInfo>, IBufferMessage
	{
		// Token: 0x170031F1 RID: 12785
		// (get) Token: 0x0600B064 RID: 45156 RVA: 0x001DD329 File Offset: 0x001DB529
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicScepterDressInfo> Parser
		{
			get
			{
				return RogueMagicScepterDressInfo._parser;
			}
		}

		// Token: 0x170031F2 RID: 12786
		// (get) Token: 0x0600B065 RID: 45157 RVA: 0x001DD330 File Offset: 0x001DB530
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicScepterDressInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170031F3 RID: 12787
		// (get) Token: 0x0600B066 RID: 45158 RVA: 0x001DD342 File Offset: 0x001DB542
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicScepterDressInfo.Descriptor;
			}
		}

		// Token: 0x0600B067 RID: 45159 RVA: 0x001DD349 File Offset: 0x001DB549
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterDressInfo()
		{
		}

		// Token: 0x0600B068 RID: 45160 RVA: 0x001DD351 File Offset: 0x001DB551
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterDressInfo(RogueMagicScepterDressInfo other) : this()
		{
			this.slot_ = other.slot_;
			this.type_ = other.type_;
			this.dressMagicUnitUniqueId_ = other.dressMagicUnitUniqueId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B069 RID: 45161 RVA: 0x001DD38E File Offset: 0x001DB58E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepterDressInfo Clone()
		{
			return new RogueMagicScepterDressInfo(this);
		}

		// Token: 0x170031F4 RID: 12788
		// (get) Token: 0x0600B06A RID: 45162 RVA: 0x001DD396 File Offset: 0x001DB596
		// (set) Token: 0x0600B06B RID: 45163 RVA: 0x001DD39E File Offset: 0x001DB59E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Slot
		{
			get
			{
				return this.slot_;
			}
			set
			{
				this.slot_ = value;
			}
		}

		// Token: 0x170031F5 RID: 12789
		// (get) Token: 0x0600B06C RID: 45164 RVA: 0x001DD3A7 File Offset: 0x001DB5A7
		// (set) Token: 0x0600B06D RID: 45165 RVA: 0x001DD3AF File Offset: 0x001DB5AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Type
		{
			get
			{
				return this.type_;
			}
			set
			{
				this.type_ = value;
			}
		}

		// Token: 0x170031F6 RID: 12790
		// (get) Token: 0x0600B06E RID: 45166 RVA: 0x001DD3B8 File Offset: 0x001DB5B8
		// (set) Token: 0x0600B06F RID: 45167 RVA: 0x001DD3C0 File Offset: 0x001DB5C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DressMagicUnitUniqueId
		{
			get
			{
				return this.dressMagicUnitUniqueId_;
			}
			set
			{
				this.dressMagicUnitUniqueId_ = value;
			}
		}

		// Token: 0x0600B070 RID: 45168 RVA: 0x001DD3C9 File Offset: 0x001DB5C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicScepterDressInfo);
		}

		// Token: 0x0600B071 RID: 45169 RVA: 0x001DD3D8 File Offset: 0x001DB5D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicScepterDressInfo other)
		{
			return other != null && (other == this || (this.Slot == other.Slot && this.Type == other.Type && this.DressMagicUnitUniqueId == other.DressMagicUnitUniqueId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B072 RID: 45170 RVA: 0x001DD434 File Offset: 0x001DB634
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Slot != 0U)
			{
				num ^= this.Slot.GetHashCode();
			}
			if (this.Type != 0U)
			{
				num ^= this.Type.GetHashCode();
			}
			if (this.DressMagicUnitUniqueId != 0U)
			{
				num ^= this.DressMagicUnitUniqueId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B073 RID: 45171 RVA: 0x001DD4A5 File Offset: 0x001DB6A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B074 RID: 45172 RVA: 0x001DD4AD File Offset: 0x001DB6AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B075 RID: 45173 RVA: 0x001DD4B8 File Offset: 0x001DB6B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DressMagicUnitUniqueId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.DressMagicUnitUniqueId);
			}
			if (this.Slot != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Slot);
			}
			if (this.Type != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Type);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B076 RID: 45174 RVA: 0x001DD530 File Offset: 0x001DB730
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Slot != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Slot);
			}
			if (this.Type != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Type);
			}
			if (this.DressMagicUnitUniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DressMagicUnitUniqueId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B077 RID: 45175 RVA: 0x001DD5A0 File Offset: 0x001DB7A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicScepterDressInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Slot != 0U)
			{
				this.Slot = other.Slot;
			}
			if (other.Type != 0U)
			{
				this.Type = other.Type;
			}
			if (other.DressMagicUnitUniqueId != 0U)
			{
				this.DressMagicUnitUniqueId = other.DressMagicUnitUniqueId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B078 RID: 45176 RVA: 0x001DD604 File Offset: 0x001DB804
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B079 RID: 45177 RVA: 0x001DD610 File Offset: 0x001DB810
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 96U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Type = input.ReadUInt32();
						}
					}
					else
					{
						this.Slot = input.ReadUInt32();
					}
				}
				else
				{
					this.DressMagicUnitUniqueId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400477F RID: 18303
		private static readonly MessageParser<RogueMagicScepterDressInfo> _parser = new MessageParser<RogueMagicScepterDressInfo>(() => new RogueMagicScepterDressInfo());

		// Token: 0x04004780 RID: 18304
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004781 RID: 18305
		public const int SlotFieldNumber = 12;

		// Token: 0x04004782 RID: 18306
		private uint slot_;

		// Token: 0x04004783 RID: 18307
		public const int TypeFieldNumber = 14;

		// Token: 0x04004784 RID: 18308
		private uint type_;

		// Token: 0x04004785 RID: 18309
		public const int DressMagicUnitUniqueIdFieldNumber = 7;

		// Token: 0x04004786 RID: 18310
		private uint dressMagicUnitUniqueId_;
	}
}
